package com.ruoyi.combat.service.apprisk.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combat.mapper.apprisk.CombatApplicationTypeMapper;
import com.ruoyi.combat.domain.apprisk.CombatApplicationType;
import com.ruoyi.combat.service.apprisk.ICombatApplicationTypeService;

/**
 * 应用类别Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-28
 */
@Service
public class CombatApplicationTypeServiceImpl implements ICombatApplicationTypeService 
{
    @Autowired
    private CombatApplicationTypeMapper combatApplicationTypeMapper;

    /**
     * 查询应用类别
     * 
     * @param id 应用类别主键
     * @return 应用类别
     */
    @Override
    public CombatApplicationType selectCombatApplicationTypeById(Long id)
    {
        return combatApplicationTypeMapper.selectCombatApplicationTypeById(id);
    }

    /**
     * 查询应用类别列表
     * 
     * @param combatApplicationType 应用类别
     * @return 应用类别
     */
    @Override
    public List<CombatApplicationType> selectCombatApplicationTypeList(CombatApplicationType combatApplicationType)
    {
        return combatApplicationTypeMapper.selectCombatApplicationTypeList(combatApplicationType);
    }

    /**
     * 新增应用类别
     * 
     * @param combatApplicationType 应用类别
     * @return 结果
     */
    @Override
    public int insertCombatApplicationType(CombatApplicationType combatApplicationType)
    {
        return combatApplicationTypeMapper.insertCombatApplicationType(combatApplicationType);
    }

    /**
     * 修改应用类别
     * 
     * @param combatApplicationType 应用类别
     * @return 结果
     */
    @Override
    public int updateCombatApplicationType(CombatApplicationType combatApplicationType)
    {
        return combatApplicationTypeMapper.updateCombatApplicationType(combatApplicationType);
    }

    /**
     * 批量删除应用类别
     * 
     * @param ids 需要删除的应用类别主键
     * @return 结果
     */
    @Override
    public int deleteCombatApplicationTypeByIds(Long[] ids)
    {
        return combatApplicationTypeMapper.deleteCombatApplicationTypeByIds(ids);
    }

    /**
     * 删除应用类别信息
     * 
     * @param id 应用类别主键
     * @return 结果
     */
    @Override
    public int deleteCombatApplicationTypeById(Long id)
    {
        return combatApplicationTypeMapper.deleteCombatApplicationTypeById(id);
    }
}
